<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>搜索人物</title>
	</head>
	<body>
		<script>
			var name=prompt("请您输入一个小鲜肉的名字：");
			if(name=="王嘉尔"){
				document.write("<img src='../image/wangjiaer.jpg'/>");
			}
			if(name=="白敬亭"){
				document.write("<img src='../image/xiaobai.jpg'/>");
			}
			if(name=="黄景瑜"){
				document.write("<img src='../image/huangjingyu.jpg'/>");
			}
		</script>
	</body>
</html>
